<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class trang extends CI_Controller {

    var $data;

    public function __construct() {
        parent::__construct();

        $this->load->library("MyMenu");
        $menu = new MyMenu;
        $this->data['menu'] = $menu->show_menu();
        $this->data['title'] = "My Controller";
    }

    public function index() {
        $this->trang_chu();
    }

    public function trang_chu() {
        $this->data['container'] = $this->load->view("frontend/container/trang-chu", "", true);
        $this->load->view("frontend/layout", $this->data);
    }

    public function gioi_thieu() {
        $this->data['container'] = $this->load->view("frontend/container/gioi-thieu", "", true);
        $this->load->view("frontend/layout", $this->data);
    }

}

?>
